import { ConfigItem } from './model';
import { defHttp } from '/@/utils/http/axios';

enum Api {
  Detail = '/company/admin/carousel/list',
  Update = '/company/admin/carousel/update',
}

export const updateData = (params: ConfigItem) =>
  defHttp.post<ConfigItem>({ url: Api.Update, params });

export const getDetail = (params: { zhCn: any }) => defHttp.get<any>({ url: Api.Detail, params });
